package magent

import (
	"bytes"
	"net/http"
)

// PostJSON is simple wrap http.Post with
// content-type "application/json;charset=utf-8"
func PostJSON(url string, body []byte) (resp *http.Response, err error) {
	resp, err = http.Post(url, "application/json;charset=utf-8", bytes.NewReader(body))
	return
}
